<?php

use think\facade\Route;

Route::rule('captcha','Verify/index','GET');
Route::rule('login','Login/login','POST');
Route::rule('logout','Login/logout','GET');

//文件上传
Route::rule('getFileList','File/list','GET');
Route::rule('uploadFile','File/uploadFile','POST');
Route::rule('deleteFile','File/deleteFile','POST');

Route::rule('getAdminInfoByToken','User/getUserInfo','GET');
Route::rule('getMenuListByToken','User/getMenuList','GET');

//角色管理
Route::rule('getRoleList','Role/list','GET');
Route::rule('getRoleTreeById','Role/treeById','GET');
Route::rule('saveRole','Role/save','POST');
Route::rule('deleteRoleById','Role/deleteById','GET');
Route::rule('updateStatus','Role/updateStatus','GET');

//管理员管理
Route::rule('getAdminUserList','User/list','GET');
Route::rule('saveAdminUser','User/save','POST');
Route::rule('updateAdminPwd','User/updatePwd','POST');
Route::rule('updateUserStatus','User/updateStatus','GET');
Route::rule('deleteUserById','User/deleteById','GET');

//公用数据配置
Route::rule('getCategoryTree','Category/allTree','GET');
//Route::rule('getCategoryNoticeTree','Category/noticeTree','GET');
Route::rule('saveCategory','Category/save','POST');
Route::rule('updateCategoryStatus','Category/updateStatus','GET');
Route::rule('updateCategoryMainStatus','Category/updateMainStatus','GET');
Route::rule('deleteCategory','Category/deleteById','GET');
Route::rule('getCategory','Category/category','GET');
Route::rule('getCategoryMultiple','Category/categoryMultiple','POST');
Route::rule('getCategoryNoticeTree','Category/allNoticeTree','GET');

//系统配置
Route::rule('getSystemConfig','SystemConfig/getData','GET');
Route::rule('setSystemConfig','SystemConfig/setData','POST');

//单页配置
Route::rule('getPageContent','Aboutus/getData','GET');
Route::rule('setPageContent','Aboutus/setData','POST');

//通知公告管理
Route::rule('getNoticeList','Notice/list','GET');
Route::rule('saveNotice','Notice/save','POST');
Route::rule('updateNoticeStatus','Notice/updateStatus','POST');
Route::rule('deleteNoticeById','Notice/deleteById','GET');

//轮播图管理
Route::rule('getBannerList','Banner/list','GET');
Route::rule('saveBanner','Banner/save','POST');
Route::rule('updateBannerStatus','Banner/updateStatus','POST');
Route::rule('deleteBannerById','Banner/deleteById','GET');

//领导之窗管理
Route::rule('getLeadershipList','Leadership/list','GET');
Route::rule('saveLeadership','Leadership/save','POST');
Route::rule('updateLeadershipStatus','Leadership/updateStatus','POST');
Route::rule('deleteLeadershipById','Leadership/deleteById','GET');

//视频管理
Route::rule('getVideoList','Video/list','GET');
Route::rule('saveVideo','Video/save','POST');
Route::rule('updateVideoStatus','Video/updateStatus','POST');
Route::rule('deleteVideoById','Video/deleteById','GET');

//留言管理
Route::rule('getMessageList','Message/list','GET');
Route::rule('saveMessage','Message/save','POST');
Route::rule('updateMessageStatus','Message/updateStatus','POST');
Route::rule('deleteMessageById','Message/deleteById','GET');

//友情链接管理
Route::rule('getLinksList','Links/list','GET');
Route::rule('saveLinks','Links/save','POST');
Route::rule('updateLinksStatus','Links/updateStatus','POST');
Route::rule('deleteLinksById','Links/deleteById','GET');

//首页统计
Route::rule('topNumStatistics','Statistics/topNum');

